
import { ipcRenderer } from "electron";
import { BatchExecOptions, ShellExecOptions } from "../../main/shellService";

const shellApi = {

    exec: (command: string, options?: ShellExecOptions) =>ipcRenderer.invoke('shell:exec', command, options),

    batchExec: (commands: string[], options?: BatchExecOptions) =>ipcRenderer.invoke('shell:batchExec', commands, options),

    cleanup: () => ipcRenderer.invoke('shell:cleanup')

}


export default shellApi;